const store = require('./store')

module.exports = (app) => {
  const { Schema, createModel, getModelName, formatDate, pre } = app.jax.mongoose
  const modelName = getModelName(__filename)

  const modelSchema = new Schema({
    userId: Schema.Types.ObjectId, // 用户ID
    activityId: Schema.Types.ObjectId, // 活动ID
    activityNo: String, // 活动编号
    storeId: Schema.Types.ObjectId, // 门店ID
    score: String, // 评分（优秀、良好、一般）
    content: String, // 评论内容
    images: [String], // 评论图片
  })

  const Model = createModel(modelName, modelSchema)

  return Model
}
